/* import { MockMethod } from 'vite-plugin-mock'
import { getRequestToken, requestParams, resultSuccess, resultError } from '../_util'
import { createFakeUserList } from '../sys/user'
export default [
  {
    url: '/basic-api/topo/getProcess',
    method: 'get',
    response: (request: requestParams) => {
      //console.log(request)
      const token = getRequestToken(request)
      if (!token) return resultError('Invalid token')
      const checkUser = createFakeUserList().find((item) => item.token == token)
      if (!checkUser) {
        return resultError('The corresponding user information was not obtained!')
      }
      const processArray: any[] = []
      const number = request.query.number
      for (let i = 0; i < 20; i++) {
        const node = {
          id: 'bus_' + i,
          name: number + '_Process' + i,
          value: i,
        }
        processArray.push(node)
      }
      return resultSuccess(processArray)
    },
  },
  {
    url: '/basic-api/topo/getContainer',
    method: 'get',
    response: (request: requestParams) => {
      const token = getRequestToken(request)
      if (!token) return resultError('Invalid token')
      const checkUser = createFakeUserList().find((item) => item.token == token)
      if (!checkUser) {
        return resultError('The corresponding user information was not obtained!')
      }
      const number = request.query.number
      const containerList = {
        name: '5GC核心网',
        symbol: 'image://' + 'src/assets/images/network.png',
        children: [
          {
            name: '服务器' + number,
            symbol: 'image://' + 'src/assets/images/服务器.png',
            children: [
              { name: 'AMF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'SMF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'AUSF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'UPF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'PCF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'UDM', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'NRF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'NSSF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
              { name: 'NEF', symbol: 'image://' + 'src/assets/images/区块链APP.png' },
            ],
          },
        ],
      }
      return resultSuccess(containerList)
    },
  },
] as MockMethod[]
 */
